import $r from '@/utils/request'

export async function fetchShopList(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreShop/getStoreShopList', {
    method: 'POST',
    data: params,
  })
}
export async function saveStoreShop(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreShop/saveStoreShop', {
    method: 'POST',
    data: params,
  })
}
export async function deleteShop(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreShop/deleteStoreShop', {
    method: 'POST',
    data: params,
  })
}
export async function batchShop(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreShop/auditBatchStoreShop', {
    method: 'POST',
    data: params,
  })
}
export async function fetchBusinessList(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreBusiness/storeBusinessList', {
    method: 'GET',
    params,
  })
}
export async function getBusinessById(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreBusiness/getStoreBusinessListByParentId', {
    method: 'POST',
    data: params,
  })
}
export async function saveShopCat(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreBusiness/saveStoreBusiness', {
    method: 'POST',
    data: params,
  })
}
export async function deleteShopCat(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreBusiness/deleteStoreBusiness', {
    method: 'POST',
    data: params,
  })
}
